package com.wang.mapper;

import com.wang.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {
    //增
    int addUser(User user);
    //删
    int deleteUserById(int id);
    //改
    int updateUser(User user);
    //查询所有用户
    List<User> queryUser();
    //查询一个用户
    User queryUserById(int id);
    //登录
    User login(User user);

}
